package cn.com.cifi.mars.mapper.mars;

import java.time.LocalDateTime;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.com.cifi.mars.entity.DmDmSupplyConfirmReport;
import cn.com.cifi.mars.entity.DmDmSupplyConfirmReportMonth;

/**
 * <p>
 * 供货确认表 Mapper 接口
 * </p>
 *
 * @author plx
 * @since 2020-07-09
 */
public interface DmDmSupplyConfirmReportMapper extends BaseMapper<DmDmSupplyConfirmReport> {

	void insertBatch(@Param("dataList")List<DmDmSupplyConfirmReportMonth> dataList);
	
	int deleteConfirmReportMonth(@Param("yearMonth")String yearMonth, @Param("projectId")String projectId);

	int deleteConfirmReport(@Param("yearMonth")String yearMonth, @Param("projectId")String projectId);

	List<DmDmSupplyConfirmReport> selectDataList(@Param("affiliationMonth")String affiliationMonth, @Param("projectIds")List<String> projectIds, 
			@Param("projectName")String projectName, @Param("status")Integer status,@Param("stageStatus")String stageStatus,@Param("isDel")int isDel);

	List<DmDmSupplyConfirmReportMonth> selectMonthList(@Param("affiliationMonth")String affiliationMonth);

	void updateConfirmStatus(@Param("affiliationMonth")String affiliationMonth, @Param("projectId")String projectId,@Param("confirmUserName") String confirmUserName,@Param("confirmTime") LocalDateTime confirmTime, @Param("status")Integer status);

	

}
